<template>
  <ConfigProvider :locale="getAntdLocale">
    <AppProvider>
      <RouterView />
    </AppProvider>
  </ConfigProvider>
</template>

<script lang="ts" setup>
  import { ConfigProvider } from 'ant-design-vue';
  import { AppProvider } from '/@/components/Application';
  import { useTitle } from '/@/hooks/web/useTitle';
  import { useLocale } from '/@/locales/useLocale';

  // support Multi-language
  const { getAntdLocale } = useLocale();

  // Listening to page changes and dynamically changing site titles
  useTitle();
</script>

<style lang="less">
  // 顶部 logo
  .vben-layout-header-logo img,
  .vben-layout-menu-logo img {
    display: none !important;
  }
  // 顶部操作栏
  .vben-layout-header-action {
    min-width: 92px !important;
  }
  // 顶部操作栏 - 搜索
  .vben-layout-header-action > div:nth-child(1) {
    display: none !important;
  }
  // 顶部操作栏 - 通知
  .vben-layout-header-action > div:nth-child(2) {
    display: none !important;
  }
  // 顶部操作栏 - 搜索
  .vben-layout-header-action > div:nth-child(1) {
    display: none !important;
  }
  // 顶部操作栏 - 多语言选择
  .vben-layout-header-action > .vben-layout-header-action__item:nth-child(4) {
    display: none !important;
  }
  // 顶部操作栏 - 系统设置
  .vben-layout-header-action > .vben-layout-header-action__item:nth-child(6) {
    display: none !important;
  }

  // 登录页 忘记密码
  .vben-login-form > .ant-form > div:nth-child(3) > div:nth-child(2) {
    display: none !important;
  }
  // 登录页 登录方式
  .vben-login-form > .ant-form > div:nth-child(5) {
    display: none !important;
  }
  // 登录页 其他登录方式提示
  .vben-login-form > .ant-form > div:nth-child(6) {
    display: none !important;
  }
  // 登录页 其他登录方式
  .vben-login-form > .ant-form > div:nth-child(7) {
    display: none !important;
  }
</style>
